package Api;

import java.util.ArrayDeque;
import java.util.LinkedList;
import java.util.Queue;

public class QueueTests {
    public static void main(String[] args) {
        Queue queue = new LinkedList<>();
        queue.add(100);
        queue.add(101);
        queue.add(102);
        System.out.println(queue);
        System.out.println(queue.remove());
        System.out.println(queue.remove());
        System.out.println(queue.remove());
        ArrayDeque queue2=new ArrayDeque();
        queue2.addLast(1);
        queue2.addLast(2);
        queue2.addLast(3);
        queue2.offer(1);
        System.out.println(queue2.element());
        System.out.println(queue2.peek());
    }
}
